﻿<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    x:Class="Microsoft.PowerShell.CmdletManagement.SelectProject"
    Title="Select a Project" Height="300" Width="500"
    WindowStyle="ToolWindow" 
    WindowStartupLocation="CenterScreen" 
    ResizeMode="NoResize" ShowInTaskbar="False" xmlns:d="http://schemas.microsoft.com/expression/blend/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" >
	<Canvas Width="494" Height="277">
		<DockPanel Width="494" Height="277" d:IsLocked="True">
			<TextBlock DockPanel.Dock="Top" Padding="5" Margin="0,5,0,5" FontWeight="Bold">
						 Select a Project from the list</TextBlock>

			
			<Button DockPanel.Dock="Bottom" Click="Click_SelectProject"
				HorizontalAlignment="Right" Margin="0,5,10,5" Width="70" Content="OK" BorderThickness="1,1,1,1" IsDefault="True"/>
			<ListView DockPanel.Dock = "Left"
				x:Name="Projects" ItemsSource="{Binding}" 
				MouseDoubleClick="DoubleClick_SelectProject" SelectedIndex="0" >
				<ListView.View>
					<GridView>
						<GridViewColumn Width="150" Header="Name" DisplayMemberBinding="{Binding Path=Name}" />
						<GridViewColumn Width="338" Header="Description" DisplayMemberBinding="{Binding Path=Description}" />
					</GridView>
				</ListView.View>
			</ListView>
		</DockPanel>
		<StackPanel x:Name="ProgressIndicator" Width="200.659" Height="20.667" Canvas.Left="132.667" Canvas.Top="130.833" Orientation="Horizontal">
			<TextBlock Width="100" Height="20.667" 
				Text="Loading Projects..." 
				TextWrapping="Wrap"
				   />
			<ProgressBar Margin="0,0,0,4" Width="100" Height="10" IsIndeterminate="True"/>
		</StackPanel>
	</Canvas>
</Window>
